package com.starinside.wp.repository;

import com.starinside.wp.domain.RelUserChildren;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserChildrenRepository extends JpaRepository<RelUserChildren, String> {

    RelUserChildren findFirstByChildrenIdAndUserId(String childrenId, String userId);

    List<RelUserChildren> findByUserIdAndCameraEnabled(String userId, Boolean cameraEnabled);

}
